package hu.pixelesztergalyos.continuity;

// realizing CharacterControls in Java
// unique controlling for every Character
public class CharacterControls {
  public byte jump;    // jump: byte keycode for key allocated for jumping
  public byte right;   // right: byte keycode for key allocated for moving right
  public byte left;    // left: byte keycode for key allocated for moving left

	// Constructor - controlling with direction keys
	public CharacterControls() {
		this.left = 37;    // ASCII code for LEFT key
		this.jump = 38;    // ASCII code for UP key
		this.right = 39;   // ASCII code for RIGHT key
	}

	// Constructor - controlling with given keys
	public CharacterControls(byte left, byte jump, byte right) {
		this.left = left;   // setting left movement key to input byte code
		this.jump = jump;   // setting jump movement key to input byte code
		this.right = right; // setting right movement key to input byte code
	}
}
